Ejemplo n.º 1
0
        public Manufacturer CreateTestManufacturer()
        {
            var newManufacturer = new Manufacturer {
                ManufacturerName = TestManufacturerName
            };

            ManufacturerService.Insert(newManufacturer);
            newManufacturer = ManufacturerService.Search(TestManufacturerName).First();
            return(newManufacturer);
        }
Ejemplo n.º 2
0
        public async Task InsertTest()
        {
            var fakeRepository      = Mock.Of <IManufacturerRepository>();
            var manufacturerService = new ManufacturerService(fakeRepository);

            var manufacturer = new Manufacturer()
            {
                Name = "Dias", Address = "USA LA"
            };
            await manufacturerService.Insert(manufacturer);
        }