示例#1
0
    public void Should_update_user()
    {
        var updateUser = _container.GetInstance <IUpdateUser>();

        var user = new PetStore.User.Api.Model.User
        {
            Email     = "*****@*****.**",
            Phone     = "12345678",
            FirstName = "Mayo",
            LastName  = "Pete",
            Status    = UserStatus.Inactive,
            UserName  = "******",
        };

        updateUser.Execute(user);
    }
示例#2
0
    public void Should_insert_user()
    {
        var insertUser = _container.GetInstance <IInsertUser>();

        var user = new PetStore.User.Api.Model.User
        {
            Email     = "*****@*****.**",
            Phone     = "12345678",
            FirstName = "Mayo",
            LastName  = "Pete",
            Status    = UserStatus.Active,
            UserName  = "******",
        };

        var petId = insertUser.Execute(user);

        petId.Should().NotBe(0);
    }