private List <BusinessAreaTypesModel> SetRegisterBusinessAreaTypes()
        {
            var registerBusinessAreaTypes = new List <BusinessAreaTypesModel>()
            {
                new BusinessAreaTypesModel()
                {
                    Id = 1, BusinessAreaType = "Test1", OtherDescription = "Test11"
                },
                new BusinessAreaTypesModel()
                {
                    Id = 2, BusinessAreaType = "Test2", OtherDescription = "Test22"
                },
                new BusinessAreaTypesModel()
                {
                    Id = 3, BusinessAreaType = "Test3", OtherDescription = "Test33"
                },
                new BusinessAreaTypesModel()
                {
                    Id = 4, BusinessAreaType = "Test4", OtherDescription = "Test44"
                },
            };

            _register.GetBusinessAreaTypes().Returns(registerBusinessAreaTypes);
            return(registerBusinessAreaTypes);
        }
        public void Initialize()
        {
            _register = Substitute.For <IRegister>();
            var registerBusinessSegmentTypes = Substitute.For <List <BusinessSegmentTypesModel> >();

            _register.GetBusinessSegmentTypes().Returns(registerBusinessSegmentTypes);
            var registerBusinessAreaTypes = Substitute.For <List <BusinessAreaTypesModel> >();

            _register.GetBusinessAreaTypes().Returns(registerBusinessAreaTypes);
            _emailSender = Substitute.For <IEmailSender>();
        }
 public List <BusinessAreaTypesModel> GetBusinessAreaTypes()
 {
     return(_register.GetBusinessAreaTypes());
 }