Ejemplo n.º 1
0
        public async Task Starship_Should_Add_WeeksConsumable()
        {
            _entity = await Starship.AddAsync("Name 8", "50", "5 weeks", 1000000);

            _entity.Should().NotBeNull().And.BeOfType(typeof(Starship)).And.BeAssignableTo(typeof(Entity));

            _entity.Id.Should().NotBeEmpty();
            _entity.Name.Should().Be("Name 8");
            _entity.MgltDistance.Should().Be(50);
            _entity.Consumables.Should().Be("5 weeks");
            _entity.AmountStopsRequired.Should().BeGreaterThan(0);
        }
Ejemplo n.º 2
0
        public async Task Starship_Should_Add_NoConsumable()
        {
            _entity = await Starship.AddAsync("Name 2", string.Empty, string.Empty, 1000000);

            _entity.Should().NotBeNull().And.BeOfType(typeof(Starship)).And.BeAssignableTo(typeof(Entity));

            _entity.Id.Should().NotBeEmpty();
            _entity.Name.Should().Be("Name 2");
            _entity.MgltDistance.Should().Be(0);
            _entity.Consumables.Should().BeNullOrEmpty();
            _entity.AmountStopsRequired.Should().Be(0);
        }