public async void DeleteRemark_Should_Call_IApiRequestProvider_CreateDeleteRequest() { Dictionary <string, string> header = null; Dictionary <string, string> query = null; _requestProvider.CreateDeleteRequest(Arg.Any <string>(), headers: Arg.Do <Dictionary <string, string> >(a => header = a), queries: Arg.Do <Dictionary <string, string> >(a => query = a)); var remarkId = "remarkId"; await _repository.DeleteRemark(remarkId); _requestProvider.Received(1).CreateDeleteRequest($"{_firebaseDatabase}/projects/{_firebaseProjectId}/databases/(default)/documents/remarks/{remarkId}", headers: Arg.Any <Dictionary <string, string> >(), queries: Arg.Any <Dictionary <string, string> >()); header.Should().ContainKey("Authorization"); header["Authorization"].Should().Be(_requestAuthorisation); query.Should().ContainKey("key"); query["key"].Should().Be(_firebaseApiKey); }
public async Task DeleteRemark(string remarkId) { await _repository.DeleteRemark(remarkId); }