private List <BusinessSegmentTypesModel> SetRegisterBusinessSegmentTypes()
        {
            var registerBusinessSegmentTypes = new List <BusinessSegmentTypesModel>()
            {
                new BusinessSegmentTypesModel()
                {
                    Id = 1, SegmentType = "Test1"
                },
                new BusinessSegmentTypesModel()
                {
                    Id = 2, SegmentType = "Test2"
                },
                new BusinessSegmentTypesModel()
                {
                    Id = 3, SegmentType = "Test3"
                },
                new BusinessSegmentTypesModel()
                {
                    Id = 4, SegmentType = "Test4"
                },
                new BusinessSegmentTypesModel()
                {
                    Id = 5, SegmentType = "Test5"
                }
            };

            _register.GetBusinessSegmentTypes().Returns(registerBusinessSegmentTypes);
            return(registerBusinessSegmentTypes);
        }
        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 <BusinessSegmentTypesModel> GetBusinessSegmentTypes()
 {
     return(_register.GetBusinessSegmentTypes());
 }