public void Should_return_Total_Credits(string galaxyUnit, string expectedResult) { //Arrange var GalaxyContext = new GalaxyContext(galaxyUnit); var tree = new List <Expression>(); tree.Add(new Thousand()); tree.Add(new Hundred()); tree.Add(new Ten()); tree.Add(new One()); tree.Add(new SilverMaterial()); tree.Add(new GoldMaterial()); tree.Add(new IronMaterial()); //Act foreach (var item in tree) { item.Interpret(GalaxyContext); } if (!GalaxyContext.IsKnown) { GalaxyContext.SetUnknown(); } //Assert Assert.Equal(expectedResult, GalaxyContext.Output); }
public void Given_A_GalacticUnit_String_Should_Return_A_RomanNumeral(string galaxyString, string expectedResult) { //Arrange var GalaxyContext = new GalaxyContext(galaxyString); var tree = new List <Expression>(); tree.Add(new Thousand()); tree.Add(new Hundred()); tree.Add(new Ten()); tree.Add(new One()); tree.Add(new SilverMaterial()); //Act foreach (var item in tree) { item.Interpret(GalaxyContext); } //Assert Assert.Equal(expectedResult, GalaxyContext.MessageRoman); }
public ArticuloServices(GalaxyContext galaxyContext) { this.galaxyContext = galaxyContext; }
public PostsController(GalaxyContext context) { _context = context; }
public OpcionServices(GalaxyContext galaxyContext) { this.galaxyContext = galaxyContext; }
public TipoArticuloServices(GalaxyContext galaxyContext, ILogger <TipoArticuloServices> logger) { this.galaxyContext = galaxyContext; this.logger = logger; }
public AccountController() { _context = new GalaxyContext(); _appContext = new ApplicationDbContext(); }
public UserAppServices(GalaxyContext galaxyContext, ILogger <UserAppServices> logger) { this.galaxyContext = galaxyContext; this.logger = logger; }