Files
server/test/Core.Test/Services/InMemoryApplicationCacheServiceTests.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
892 B
C#
Raw Normal View History

using Bit.Core.Repositories;
using Bit.Core.Services;
using NSubstitute;
using Xunit;
2022-08-29 14:53:16 -04:00
namespace Bit.Core.Test.Services;
public class InMemoryApplicationCacheServiceTests
{
2022-08-29 14:53:16 -04:00
private readonly InMemoryApplicationCacheService _sut;
2022-08-29 14:53:16 -04:00
private readonly IOrganizationRepository _organizationRepository;
private readonly IProviderRepository _providerRepository;
2022-08-29 14:53:16 -04:00
public InMemoryApplicationCacheServiceTests()
{
_organizationRepository = Substitute.For<IOrganizationRepository>();
_providerRepository = Substitute.For<IProviderRepository>();
2022-08-29 14:53:16 -04:00
_sut = new InMemoryApplicationCacheService(_organizationRepository, _providerRepository);
}
2022-08-29 14:53:16 -04:00
// Remove this test when we add actual tests. It only proves that
// we've properly constructed the system under test.
[Fact]
public void ServiceExists()
{
Assert.NotNull(_sut);
}
}