public void GetInteractionsTestShouldBeEmpty()
        {
            var harness = new DomainTestHarness();

             harness.SetupGetCollectionForInteractions(null);

             var service = harness.GetInteractionService();
             var response = service.GetInteractions();
             response.Success.Should().BeTrue();
             response.Collection.Should().BeNull();
             harness.InteractionRepository.Verify();
        }
Ejemplo n.º 2
0
        public void GetInteractionsTestShouldBeEmpty()
        {
            var harness = new DomainTestHarness();

            harness.SetupGetCollectionForInteractions(null);

            var service  = harness.GetInteractionService();
            var response = service.GetInteractions();

            response.Success.Should().BeTrue();
            response.Collection.Should().BeNull();
            harness.InteractionRepository.Verify();
        }
        public void GetInteractionsTestShouldPass()
        {
            var harness = new DomainTestHarness();

             var collection = harness.Fixture.CreateMany<Interaction>().ToList();
             harness.SetupGetCollectionForInteractions(collection);

             var service = harness.GetInteractionService();
             var response = service.GetInteractions();
             response.Success.Should().BeTrue();
             response.Collection.Should().NotBeNullOrEmpty();
             response.Collection.Count().Should().Be(collection.Count());
             harness.InteractionRepository.Verify();
        }
Ejemplo n.º 4
0
        public void GetInteractionsTestShouldPass()
        {
            var harness = new DomainTestHarness();

            var collection = harness.Fixture.CreateMany <Interaction>().ToList();

            harness.SetupGetCollectionForInteractions(collection);

            var service  = harness.GetInteractionService();
            var response = service.GetInteractions();

            response.Success.Should().BeTrue();
            response.Collection.Should().NotBeNullOrEmpty();
            response.Collection.Count().Should().Be(collection.Count());
            harness.InteractionRepository.Verify();
        }