コード例 #1
0
            public void Inheritence()
            {
                var fakeRepository          = A.Fake <IRepository <Domain.Platform.Entities.Platform> >();
                var fakeRepositoryAggregate = A.Fake <IRepositoryAggregate>();

                var platformRequestAggregate = new PlatformRequestAggregate(fakeRepository, fakeRepositoryAggregate);

                platformRequestAggregate.Should().NotBeNull();
                platformRequestAggregate.Should().BeAssignableTo <IPlatformRequestAggregate>();
                platformRequestAggregate.Should().BeAssignableTo <BaseRequestAggregate <Domain.Platform.Entities.Platform> >();
                platformRequestAggregate.Should().BeOfType <PlatformRequestAggregate>();
            }
コード例 #2
0
 public void TestCleanup()
 {
     ClearFakes();
     requestAggregate = null;
 }
コード例 #3
0
 public void TestInitailize()
 {
     InitializeFakes();
     requestAggregate = new PlatformRequestAggregate(FakeRepository, FakeRepositoryAggregate);
 }