public void ToDomain_WhenCalled_ReturnsAccountGroup()
        {
            IAccountGroupCommand sut = CreateSut();

            IAccountGroup result = sut.ToDomain();

            Assert.That(result, Is.TypeOf <AccountGroup>());
        }
        public void ToDomain_WhenCalled_ReturnsAccountGroupWithAccountGroupTypeFromCommand()
        {
            AccountGroupType     accountGroupType = _fixture.Create <AccountGroupType>();
            IAccountGroupCommand sut = CreateSut(accountGroupType: accountGroupType);

            AccountGroupType result = sut.ToDomain().AccountGroupType;

            Assert.That(result, Is.EqualTo(accountGroupType));
        }
        public void ToDomain_WhenCalled_ReturnsAccountGroupWithNameFromCommand()
        {
            string name = _fixture.Create <string>();
            IAccountGroupCommand sut = CreateSut(name: name);

            string result = sut.ToDomain().Name;

            Assert.That(result, Is.EqualTo(name));
        }
        public void ToDomain_WhenCalled_ReturnsAccountGroupWithNumberFromCommand()
        {
            int number = _fixture.Create <int>();
            IAccountGroupCommand sut = CreateSut(number);

            int result = sut.ToDomain().Number;

            Assert.That(result, Is.EqualTo(number));
        }