예제 #1
0
 public void OneTimeSetup()
 {
     _listId = Session.Query<Domain.Models.List>().FirstOrDefault().Id;
     _automapper = Substitute.For<IAutomapper>();
     _validationRunner = Substitute.For<IValidationRunner>();
     _listController = new ListsController(Session, _automapper, _validationRunner);
 }
 public MessageRepository(IStorageFactory storageFactory, IMessageCreated messageCreated, IAutomapper mapper,
                          IFilterMessages filterMessages, ICreatePagination <MessageEntity> createPagination)
 {
     _storage          = storageFactory.Make();
     _messageCreated   = messageCreated;
     _mapper           = mapper;
     _filterMessages   = filterMessages;
     _createPagination = createPagination;
 }
        public void Build_DoesNot_ReturnNull()
        {
            IAutomapper actual = _instance.Build();

            actual.ShouldNotBeNull();
        }
예제 #4
0
 public void OneTimeSetup()
 {
     _userId = Session.Query<User>().FirstOrDefault().Id;
     _automapper = Substitute.For<IAutomapper>();
     _authenticationService = Substitute.For<IAuthenticationService>();
     _validationRunner = Substitute.For<IValidationRunner>();
     _usersController = new UsersController(Session, _automapper, _authenticationService, _validationRunner);
 }
예제 #5
0
        static AutomapperTests()
        {
            var builder = new AutomapperBuilder();

            Instance = builder.WithMaps().Build();
        }