Exemple #1
0
        public async Task PingAsyncPingsRepository(bool repositoryPingSuccessful)
        {
            // Arrange
            var repository  = A.Fake <ICosmosRepository <SegmentDataModel> >();
            var dataService = new ProfileDataService(repository, defaultLogger);

            A.CallTo(() => repository.PingAsync()).Returns(repositoryPingSuccessful);

            // Act
            var result = await dataService.PingAsync().ConfigureAwait(false);

            // Assert
            Assert.Equal(repositoryPingSuccessful, result);
        }