Beispiel #1
0
 public void SetUp()
 {
     _arpaContext                  = Substitute.For <IArpaContext>();
     _validator                    = new SetProjectParticipation.Validator(_arpaContext);
     _mockProjectDbSet             = MockDbSets.Projects;
     _mockSelectValueCategoryDbSet = MockDbSets.SelectValueCategories;
     _arpaContext.SelectValueCategories.Returns(_mockSelectValueCategoryDbSet);
     _arpaContext.Projects.Returns(_mockProjectDbSet);
 }
Beispiel #2
0
        public void Setup()
        {
            _arpaContext = Substitute.For <IArpaContext>();
            DbSet <SelectValueCategory> mockSelectValueCategoryDbSet = MockDbSets.SelectValueCategories;

            _arpaContext.SelectValueCategories.Returns(mockSelectValueCategoryDbSet);
            _validator = new SetProjectParticipation.Validator(_arpaContext)
            {
                CascadeMode = FluentValidation.CascadeMode.Stop
            };
        }