Пример #1
0
        public void Arrange()
        {
            MappingBootstrapper.Initialize();

            var organisation = Builder <Organisation> .CreateNew().Build();

            var mockSet = CreateMockDbSet();

            _mockDbContext = CreateMockDbContext(mockSet);

            _organisationRepository = new OrganisationRepository(_mockDbContext.Object);
            _result = _organisationRepository.CreateNewOrganisation(organisation).Result;
        }