Esempio n. 1
0
            public Facts(ITestOutputHelper output)
            {
                TelemetryService = new Mock <IAzureSearchTelemetryService>();
                Logger           = output.GetLogger <OwnerSetComparer>();

                Target = new OwnerSetComparer(
                    TelemetryService.Object,
                    Logger);
            }
            public async Task ComparesInTheRightOrder()
            {
                await Target.ExecuteAsync();

                OwnerSetComparer.Verify(
                    x => x.CompareOwners(
                        It.IsAny <SortedDictionary <string, SortedSet <string> > >(),
                        It.IsAny <SortedDictionary <string, SortedSet <string> > >()),
                    Times.Once);
                OwnerSetComparer.Verify(
                    x => x.CompareOwners(StorageResult.Result, DatabaseResult),
                    Times.Once);
            }