Exemple #1
0
        public CustomerServiceTest()
        {
            _user   = new User("*****@*****.**");
            _userId = _user.Id;

            _repository = new NetworkRepository <User>();
            _repository.Save(_user);

            _emailService = new MockEmailService();
            _service      = new CustomerService(_repository, _emailService);
        }
Exemple #2
0
        public CustomerServiceTest()
        {
            var emailService = new MockEmailService();
            var cultureInfo  = new CultureInfo("en-US")
            {
                NumberFormat = { CurrencySymbol = "$" }
            };

            CultureInfo.DefaultThreadCurrentCulture   = cultureInfo;
            CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;

            _user       = new User("*****@*****.**");
            _userId     = _user.Id;
            _repository = new NetworkRepository <User>();
            _repository.Save(_user);
            _service = new CustomerService(_repository, emailService);
        }