Ejemplo n.º 1
0
        public async Task DefaultMachine()
        {
            var unitOfWork = Substitute.For <IUnitOfWork>();
            var rep        = Substitute.For <IMachineRepository>();
            var repC       = Substitute.For <IConfigurationRepository>();

            var ctrl = new MachineManager(unitOfWork, rep, repC, new CNCLibUserContext(), Mapper);

            var machine = await ctrl.Default();

            machine.Should().NotBeNull();
            machine.Name.Should().Be("New");
        }